package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.MarketGoods;
import com.cskaoyan.market.db.domain.MarketGoodsAttribute;
import com.cskaoyan.market.db.domain.MarketGoodsProduct;
import com.cskaoyan.market.db.domain.MarketGoodsSpecification;

import java.util.List;
import java.util.Map;

public interface MarketGoodsService {
    List<MarketGoods> list(Integer page, Integer limit, String goodsSn, String name, String sort, String order, String goodsId);


    void update(MarketGoods goods, List<MarketGoodsProduct> products, List<MarketGoodsSpecification> specifications, List<MarketGoodsAttribute> attributes);

    Map<String, Object> catAndBrand();

    void create(MarketGoods goods, List<MarketGoodsProduct> products, List<MarketGoodsSpecification> specifications, List<MarketGoodsAttribute> attributes);

    Map<String, Object> detail(Integer goodsId);

    void delete(MarketGoods goods);
}
